package com.ttxz.sample.http

import com.ttxz.common.http.HttpResponse
import com.ttxz.sample.bean.ArticleListBean
import com.ttxz.sample.bean.ArticleListItemBean
import com.ttxz.sample.bean.BannerBean
import io.reactivex.rxjava3.core.Observable
import retrofit2.http.GET
import retrofit2.http.Path

interface DemoApiServer {
    /**
     * 获取banner广告条数据
     */
    @GET("/banner/json")
    suspend fun getBanner(): HttpResponse<List<BannerBean>>

    /**
     * 获取首先文章列表
     */
    @GET("article/list/{pageNumber}/json?page_size=30")
    suspend fun getArticleList(@Path("pageNumber") pageNumber:Int): HttpResponse<ArticleListBean>
}